package com.liao.jta_jpa.dao.test1;

import com.liao.jta_jpa.pojo.test1.TbUser;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

public interface User1Dao extends CrudRepository<TbUser,Integer> {

    @Query("update TbUser u set u.password = ?2 where u.id = ?1")
    @Modifying
    Integer updateData(Integer id,String password);
}
